package com.sn.author.monitor.handler;

import com.sn.author.common.sdk.AbstractResponse;
import com.sn.author.common.sdk.Client;
import com.sn.author.common.sdk.client.YKClient;
import com.sn.author.common.sdk.entity.AbstractResult;
import com.sn.author.domain.taskEntity.TaskModel;

/**
 * @Author xiaom
 * @Date 2020/9/22 17:12
 * @Version 1.0.0
 * @Description <>
 **/
public interface Handler {

    void execute() throws Exception;

    void responseAfter(AbstractResponse response);

    void responseErrAfter(String errMsg);

    default Client getClient(){
        return new YKClient();
    }

}
